<?php

namespace App;

use App\Ws;

class Close
{
    static public $server = null;
    public $fd = null;
    public function __construct($server, $fd)
    {
        self::$server = $server;
        $this->fd = $fd;
        $this->delFdOfTable();
    }

    public function delFdOfTable()
    {
        ws::$table::get('uidTable')->del($this->fd);
        ws::$table::get('admTable')->del($this->fd);
        ws::$table::get('admOnlineTable')->del($this->fd);
    }
}
